package com.atguigui.leetcode1;

/**
 * 2413.最小偶倍数
 * Project: leetcode
 * Package: com.atguigui.leetcode1
 * Version: 1.0
 * <p>
 * Created by WJX on 2023/4/21 8:32
 */
public class P2413SmallestEvenMultiple {
    public static void main(String[] args) {
        Solution solution = new P2413SmallestEvenMultiple().new Solution();
        // TO TEST
    }

    class Solution {
        public int smallestEvenMultiple(int n) {
            return n % 2 == 0 ? n : n * 2;
        }
    }
}
